//
//  HeaderView.m
//  BabyBedtimeStory
//
//  Created by qianfeng on 15-6-21.
//  Copyright (c) 2015年 张鹏毅. All rights reserved.
//

#import "HeaderView.h"

@implementation HeaderView
{
//    UIImageView *_imageView;
    UILabel *_label;
}
-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self creatView:frame];
    }
    return self;
}

-(void)creatView:(CGRect) frame{
    _label = [[UILabel alloc]initWithFrame:CGRectMake(0, 30, frame.size.width, frame.size.height-30)];
    _label.font = [UIFont fontWithName:@"Didot" size:13];
    [self addSubview:_label];
//    _imageView = [[UIImageView alloc]initWithFrame:CGRectMake(frame.size.width-50, 0, 50, frame.size.height-30)];
//    [_label addSubview:_imageView];
}

-(void)showWithModel:(StoryModel *)model{
//    _imageView.image = [UIImage imageNamed:@""];
    _label.text = model.title;
}

@end
